This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Mary Prekroterynds 5.Dec.11 01:09 PM a Web browser Sametime Connect Client3.0All Platforms
Hi
We are developing an application named BOT in Java using the IBM sametime tooklit Java API wherein we are trying to capture the status of an user in sametime using watchList
The steps followed to add a user to the watchList were as follows:
1. Awareness service is used
AwarenessService awarenessService = (AwarenessService) stsession.getCompApi(AwarenessService.COMP_NAME);
2. Creation of WatchList
WatchList watchList = awarenessService.createWatchList();
3. Adding statusListener to watchlist
watchList.addStatusListener(this);
Now when I am resolving a particular user I am able to get the status of available,away,meeting and busy(dnd) mode in the "userStausChanged(StatusEvent se)" but not for "OFFLINE" .The status event is not triggering for an offline user after resolving and adding to the watchList
and also the following piece of code is giving me the NullPointerException while trying to fetch the status description for whatever may be the status of user
public void resolved(ResolveEvent re) {
if (re.getResolved() instanceof STUser) {
STUser user = ((STUser) re.getResolved());
String userName = user.getName();
// add to the watch list
watchList.addItem(user);
awarenessService.findUserStatus(user).getStatusDescription()
Can someone please help me how to know the status of an OFFLINE user if the status event is not triggering.